package com.gzy.cs5.service;

import com.gzy.cs5.Repository.InventoryRepository;
import com.gzy.cs5.exception.BusinessException;
import com.gzy.cs5.model.InventoryItem;

import java.util.List;

public interface InventoryService {
    void addItem(InventoryItem item) throws BusinessException;
    void removeItem(String itemId) throws BusinessException;
    List<InventoryItem> getAllItems();
    InventoryItem getItemById(String itemId);
    void updateItemQuantity(String itemId, int quantity) throws BusinessException;
}